<@realgodo.admin_html>
	<div class="title">
		<h1>星座管理</h1>
		<span class="tTip"></span>
	</div>
	<div class="box">
		<div class="tx_table" id="columns_list">
			<div class="data">
				<table class="l_tc">
					<caption>星座列表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="${base}/admin/constellation/index!add">添加</a></caption>
					<thead>
						<tr>
							<th>星座名称</th>
							<th>英文名称</th>
							<th>开始时间</th>
							<th>结束时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<#list constellationList as o>
							<tr <#if o_index%2 != 0> class="c_odd" </#if>>
								<td><a class="c_modi" href="${base}/admin/constellation/index!detail?id=${o.id?c}">${o.name!}</a></td>
								<td><a class="c_modi" href="${base}/admin/constellation/index!detail?id=${o.id?c}">${o.en_name!}</a></td>
								<td>${(o.startDate?string('MM月dd日'))!} </td>
								<td>${(o.endDate?string('MM月dd日'))!} </td>
								<td>
									<a class="c_modi" href="${base}/admin/constellation/index!edit?id=${o.id?c}">编辑</a>
									<a class="c_modi" href="#" onclick="delConstellation('${o.id?c}')">删除</a>
								</td>
							</tr>
						</#list>
					</tbody>
				</table>
			</div>
		</div>
	</div>
<script type="text/javascript">
	function delConstellation(id){
		if(window.confirm("你确认删除该条星座记录吗？该操作无法撤销.")){
			window.location.href="${base}/admin/constellation/index!delete?id=" + id;
		}
	}
</script>
</@realgodo.admin_html>